

import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.layout.FormAttachment;
import org.eclipse.swt.layout.FormData;
import org.eclipse.swt.layout.FormLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.SWT;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class InputData extends org.eclipse.swt.widgets.Composite {
	private Group groupInput;
	private Text textCandidate;
	private Label labelAccuracyPerc;
	private Button buttonCheckPrimality;
	private Text textAccuracy;
	private Label labelAccuracy;
	private Label labelCandidate;

	/**
	* Auto-generated main method to display this 
	* org.eclipse.swt.widgets.Composite inside a new Shell.
	*/
	
	/**
	* Overriding checkSubclass allows this class to extend org.eclipse.swt.widgets.Composite
	*/	
	protected void checkSubclass() {
	}
	
	/**
	* Auto-generated method to display this 
	* org.eclipse.swt.widgets.Composite inside a new Shell.
	*/
	public static void showGUI() {
		Display display = Display.getDefault();
		Shell shell = new Shell(display);
		InputData inst = new InputData(shell, SWT.NULL);
		Point size = inst.getSize();
		shell.setLayout(new FillLayout());
		shell.layout();
		if(size.x == 0 && size.y == 0) {
			inst.pack();
			shell.pack();
		} else {
			Rectangle shellBounds = shell.computeTrim(0, 0, size.x, size.y);
			shell.setSize(shellBounds.width, shellBounds.height);
		}
		shell.open();
		while (!shell.isDisposed()) {
			if (!display.readAndDispatch())
				display.sleep();
		}
	}

	public InputData(org.eclipse.swt.widgets.Composite parent, int style) {
		super(parent, style);
		initGUI();
	}

	private void initGUI() {
		try {
			FillLayout thisLayout = new FillLayout(org.eclipse.swt.SWT.HORIZONTAL);
			this.setLayout(thisLayout);
			{
				groupInput = new Group(this, SWT.NONE);
				FormLayout groupInputLayout = new FormLayout();
				groupInput.setLayout(groupInputLayout);
				groupInput.setText("Dane wej\u015bciowe");
				{
					buttonCheckPrimality = new Button(groupInput, SWT.PUSH | SWT.CENTER);
					FormData buttonCheckPrimalityLData = new FormData();
					buttonCheckPrimalityLData.left =  new FormAttachment(0, 1000, 197);
					buttonCheckPrimalityLData.top =  new FormAttachment(0, 1000, 27);
					buttonCheckPrimalityLData.width = 56;
					buttonCheckPrimalityLData.height = 25;
					buttonCheckPrimality.setLayoutData(buttonCheckPrimalityLData);
					buttonCheckPrimality.setText("Sprawd\u017a");
				}
				{
					labelCandidate = new Label(groupInput, SWT.NONE);
					labelCandidate.setText("Kandydat");
					FormData labelCandidateLData = new FormData();
					labelCandidateLData.width = 54;
					labelCandidateLData.height = 16;
					labelCandidateLData.left =  new FormAttachment(0, 1000, 24);
					labelCandidateLData.top =  new FormAttachment(0, 1000, 5);
					labelCandidate.setLayoutData(labelCandidateLData);
				}
				{
					textCandidate = new Text(groupInput, SWT.NONE);
					textCandidate.setOrientation(SWT.HORIZONTAL);
					FormData textCandidateLData = new FormData();
					textCandidateLData.width = 64;
					textCandidateLData.height = 16;
					textCandidateLData.left =  new FormAttachment(0, 1000, 90);
					textCandidateLData.top =  new FormAttachment(0, 1000, 5);
					textCandidate.setLayoutData(textCandidateLData);
				}
				{
					labelAccuracy = new Label(groupInput, SWT.NONE);
					labelAccuracy.setText("Dok\u0142adno\u015b\u0107");
					FormData labelAccuracyLData = new FormData();
					labelAccuracyLData.width = 62;
					labelAccuracyLData.height = 15;
					labelAccuracyLData.left =  new FormAttachment(0, 1000, 16);
					labelAccuracyLData.top =  new FormAttachment(0, 1000, 33);
					labelAccuracy.setLayoutData(labelAccuracyLData);
				}
				{
					textAccuracy = new Text(groupInput, SWT.NONE);
					FormData textAccuracyLData = new FormData();
					textAccuracyLData.width = 64;
					textAccuracyLData.height = 15;
					textAccuracyLData.left =  new FormAttachment(0, 1000, 90);
					textAccuracyLData.top =  new FormAttachment(0, 1000, 33);
					textAccuracy.setLayoutData(textAccuracyLData);
				}
				{
					labelAccuracyPerc = new Label(groupInput, SWT.NONE);
					labelAccuracyPerc.setText("%");
					FormData labelAccuracyPercLData = new FormData();
					labelAccuracyPercLData.width = 13;
					labelAccuracyPercLData.height = 15;
					labelAccuracyPercLData.left =  new FormAttachment(0, 1000, 160);
					labelAccuracyPercLData.top =  new FormAttachment(0, 1000, 33);
					labelAccuracyPerc.setLayoutData(labelAccuracyPercLData);
				}
			}
			this.layout();
			pack();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	public String getTextCandidate() {
		return textCandidate.getText();
	}
	
	public String getTextAccuracy() {
		return textAccuracy.getText();
	}

}
